package com.xiaodu.acer.phoneplay.ui.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.xiaodu.acer.phoneplay.R;
import com.xiaodu.acer.phoneplay.bean.Subject;
import com.xiaodu.acer.phoneplay.common.Constant;

import library.imageloader.ImageLoader;


public class SubjectAdapter extends BaseQuickAdapter<Subject, BaseViewHolder> {


    public SubjectAdapter() {
        super(R.layout.template_imageview);
    }

    @Override
    protected void convert(BaseViewHolder helper, Subject item) {


        ImageView imageView = helper.getView(R.id.imageview);
        String url = Constant.BASE_IMG_URL + item.getMticon();
        ImageLoader.load(url, imageView);

    }
}
